package com.blb.service.impl;

import com.blb.entity.StayProduction;
import com.blb.mapper.StayProductionMapper;
import com.blb.service.IStayProductionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tb
 * @since 2020-05-26
 */
@Service
public class StayProductionServiceImpl extends ServiceImpl<StayProductionMapper, StayProduction> implements IStayProductionService {

    @Resource
    StayProductionMapper stayProductionMapper;

    @Override
    public List<StayProduction> stayList(Integer page,Integer limit,String cid) {
        return stayProductionMapper.stayList((page-1)*limit,limit,cid);
    }

    @Override
    public Integer getCount(String cid) {
        return stayProductionMapper.getCount(cid);
    }

    @Override
    public List<StayProduction> getLike(String orderId, Integer state,String cid) {
        return stayProductionMapper.getLike(orderId,state,cid);
    }
}
